package com.point_of_sale.main;

import com.point_of_sale.terminal.NoProductListLoaderException;
import com.point_of_sale.terminal.Terminal;

// Use JUnit tests instead of a main class
@Deprecated
public class Main 
{
	public static void main(String[] args) 
	{
		Terminal terminal = new Terminal();
		
		try {
			terminal.loadProducts(args[0]);
		} catch (NoProductListLoaderException e) {

			e.getMessage();
		}
		
		terminal.scan("C");
		terminal.scan("C");
		terminal.scan("C");
		terminal.scan("C");
		terminal.scan("C");
		terminal.scan("C");
		terminal.scan("C");
		
		System.out.println("$" + terminal.checkOut());
	}
}
